package com.kotlin.demo.构造函数的用法

class 初始化陷阱3(_info: String) {

    var info = _info
    val content: String = getInfoMethod()
//    var info = _info

    fun getInfoMethod() = info

}

fun main() {
    println(初始化陷阱3("zq").content.length)
}